﻿<!doctype html>
<html>
<head>
<#include "/part_meta.ftl">
<title>商品类目-迈小众</title>
<link href="${st.resDomain}/css/style.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC-base.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC.css" rel="stylesheet">
<link href="${st.resDomain}/css/form-base.css" rel="stylesheet">
<style>
span.msg-box.n-top {float:left}

#lbgl table tr {height:25px;line-height:25px;}
#lbgl table td {padding:2px;}
#lbgl table tr.hover td {background-color: #F0F0F0}
#lbgl table input {float:left;height: 22px;padding: 0px 4px;border: 1px solid #ABADB3;width: 150px;line-height: 22px;}
#lbgl table .r {text-align: right;font-weight:bold;font-size:14px;}
#lbgl table .r span.msg-box.n-top {float:none;font-size:12px;font-weight: normal;}
#lbgl table .btn3 {float:left;height: 22px;line-height: 22px;margin-left:5px;}
#lbgl table .addSonForm {display:none;}
#lbgl table .editForm {display:none;}
#lbgl table .ctrl {display:none;margin-left:20px;}

#dpxx {padding: 0px;}
#dpxx p.content {font-size:13px;}
#dpxx p.content span {float:none;display:inline-block;padding:0px;}
#dpxx p.tip {height: 60px;margin-top: -30px;}
#dpxx select {width: 200px;float: left;clear: both;}
</style>
</head>

<body>
<!--- header --->
<div id="header">
  <div class="main f_clear">
  	<div class="logo"><h2><@shiro.principal property="c_name"/></h2><span>您好！<@shiro.principal property="m_name" />， <a href="${st.domain}/member/logoutDo">退出</a></span></div>
    <div class="f_right"><a href="${st.userDomain}">个人中心</a> <@shiro.hasRole name="SHOP"><a href="${st.shopDomain}">店铺管理</a></@shiro.hasRole><a class="selected">企业管理</a></div>
  </div>
</div>
<!--- header end--->
<!--topnav -->
<div id="topnav">
  <div class="main">
    <ul class="left">
      
      <li class="selected"><a href="${st.firmDomain}/goods/list">商品</a></li>
      <li><a href="${st.firmDomain}/store/list">店铺</a></li>
      <li><a href="${st.firmDomain}/memberVip/list">会员</a></li>
      <li><a href="${st.firmDomain}/company/edit">企业</a></li>
      <li><a href="${st.firmDomain}/goodsReport">数据</a></li>
    </ul>
  </div>
</div>
<!--topnav end-->
<div id="main" class="f_clear">
  <div id="left">
  	<ul id="menu1">
      <li><a href="${st.firmDomain}/goods/list">商品库</a></li>
	  <li class="selected"><a href="${st.firmDomain}/goodsClassify/list">商品类目</a></li>
    </ul>
  </div>
  <div id="right">
    <div id="title">商品类目</div>
    <div id="lbgl">
    <div id="hideData" style="display:none">{"companyId": "${companyId}"}</div>
  	<table id="list" width="100%" border="0" cellspacing="0" cellpadding="0">
      <col width="30"/>
      <col width="165"/>
      <col width="350" />
      <tr>
        <th>&nbsp;</th>
        <th>一级类</th>
		<th>二级类</th>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>
          <form id="addRootForm" onsubmit="return false;" autocomplete="off" style="float:right;">
            <input type="text" name="name">
          </form>
        </td>
        <td>
          <a dt="btn1" class="btn3" style="margin-left:0px;">添加</a>
        </td>
      </tr>
      <tr dt="rootItem" id="item_-{id}-" class="rootItem">
        <td><a dt="unwind">▼</a></td>
        <td class="r">
        	<form dt="editForm" onsubmit="return false;" autocomplete="off" class="editForm">
        		<input type="hidden" name="classifyId" value="-{id}-">
        		<input type="text" name="name" value="-{name}-" style="float: right;">
        	</form>
        	<span dt="name" >-{name}-</span>
        </td>
        <td>
          <span dt="ctrl" class="ctrl">
        		<a dt="editBt">编辑</a> | <a dt="sortBt">置顶</a> | <a dt="delBt">删除</a> | <a dt="addBt">添加子类</a>	
          </span>
          <form dt="addSonForm" onsubmit="return false;" autocomplete="off" class="addSonForm">
            <input type="text" name="name" value="新类目"> 
            <input type="hidden" name="goodsClassify.classifyId" value="-{id}-">
          </form>
        </td>
      </tr>
      <tr dt="sonItem" id="item_-{id}-">
        <td>&nbsp;</td>
        <td class="r">├</td>
        <td>
        	<form dt="editForm" onsubmit="return false;" autocomplete="off" class="editForm">
        		<input type="hidden" name="classifyId" value="-{id}-">
        		<input type="text" name="name" value="-{name}-">
        	</form>
        	<span dt="name" >-{name}-</span>
        	<span dt="ctrl" class="ctrl">
        		<a dt="editBt">编辑</a> | <a dt="sortBt">置顶</a> | <a dt="delBt">删除</a>
          	</span>
        </td>
      </tr>
    </table>
    <div>    
    </div>
  </div>
  </div>
</div>

<div id="dpxx" style="display:none;padding: 0px;">
   <form id="delForm">
   <div class="form val" style="width:auto;">
      <p class="content">确定要删除“<span id="delName"></span>”吗？</p>
      <p>
        <label>原商品移动到：<em>*</em></label>
        <span id="selectClassify"></span>
      </p>
      <p class="tip">
        <label>&nbsp;</label>
        <span id="delMsg" class="msg-box n-bottom"></span>
      </p>
    </div>
   </form>
</div>
  <!--footer-->
<div id="footer">Copyright© 迈小众 <span style="padding-left:30px;">客服QQ：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3101084438&site=qq&menu=yes" rel="nofollow"><img border="0" src="http://wpa.qq.com/pa?p=2:3101084438:50" alt="点击联系我们，QQ：3101084438" title="点击联系我们，QQ：3101084438"></a></span></div>
<!--footer end-->
<script data-main="${st.resDomain}/scripts/firm/goodsClassify_list" src="${st.resDomain}/scripts/require.js"></script>
</body>
</html>
